﻿@model IEnumerable<ElectrosLtd.Models.FilterProductsModel>

<h2>Filter Products</h2>

<h3>Search by name: </h3> 
<table>
    

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.category.Name)
        </td>
    </tr>
    
    @Ajax.ActionLink("Sort By Price Ascending", "PriceAscending",
               new AjaxOptions
               {
                   HttpMethod = "Get",
                   InsertionMode = InsertionMode.Replace                   
               })

}

</table>
